<?php
/**
 * Created by PhpStorm.
 * User: 76683
 * Date: 2018/7/20
 * Time: 23:59
 */

namespace app\sd\validate;


use think\Validate;

class DayTopic extends Validate
{
    protected $rule = [
        'topic_id'=>'require|integer',
        'show_date'=>'require|date'
    ];

    protected $message = [
        'topic_id.require'=>'话题参数丢失',
        'topic_integer'=>'话题参数错误',
        'show_date.require'=>'请选择展示日期',
        'show_date.date'=>'日期格式错误',
    ];
}